libxl: log which PCI device could not be reset.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 11 Jan 2011 18:16:26 +0000 (18:16 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 11 Jan 2011 18:16:26 +0000 (18:16 +0000)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_pci.c

index e7312e2f4853bd98afba3b6115f861f3b6959913..29814b00ba4f4808b04a9ba5a36c0df412a6e2e6 100644 (file)
@@ -756,7 +756,7 @@ static int libxl_device_pci_reset(libxl__gc *gc, unsigned int domain, unsigned i
         return rc < 0 ? rc : 0;
     }
     if (errno == ENOENT) {
-        LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "The kernel doesn't support PCI device reset from sysfs");
+        LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "The kernel doesn't support reset from sysfs for PCI device "PCI_BDF, domain, bus, dev, func);
     } else {
         LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "Failed to access reset path %s", reset);
     }